import time

setGlobalDuration(30)

beginPythonInst(voice=1)
playSound(duration=8, out='snd')
bandpass(input='snd', duration=5, out='rev')
endPythonInst()

reverb(input='rev', revtime=1.5, highdamp=.7, mix=.25)

proc = startCsound()

time.sleep(1)
dict = {'playSound': {'pitch': .5, 'loop': False, 'pan': 0}, 
        'bandpass': {'cutoff': 500, 'bandwidth': 200}}
sendEvent(1, dict, proc)

time.sleep(5)
dict = {'playSound': {'pitch': .75, 'loop': False, 'pan': .25}, 
        'bandpass': {'cutoff': 500, 'bandwidth': 200}}
sendEvent(1, dict, proc)

time.sleep(5)
dict = {'playSound': {'pitch': 1, 'loop': False, 'pan': .5}, 
        'bandpass': {'cutoff': 1000, 'bandwidth': 200}}
sendEvent(1, dict, proc)

time.sleep(5)
dict = {'playSound': {'pitch': 1.5, 'loop': True, 'pan': .75}, 
        'bandpass': {'cutoff': 1500, 'bandwidth': 400}}
sendEvent(1, dict, proc)

time.sleep(5)
dict = {'playSound': {'pitch': 2, 'loop': True, 'pan': 1}, 
        'bandpass': {'cutoff': 1000, 'bandwidth': 100}}
sendEvent(1, dict, proc)